package orxatas.travelme.entity;

/**
 * Comentario
 * Entidad que representa un comentario.
 * */
public class Comment {
	private int idOffline;
	private int idOnline;
	private int lastUpdate;
	private String comment;
	private int idPlaceRelated;
	private int idAutor;
	
	/**
	 * Constructor
	 * @param {String} textComment Texto del comentario en utf-8.
	 * */
	public Comment(int idOffline, String textComment){
		this.comment = textComment;
		this.idOffline = idOffline;
	}
	
	/**
	 * Constructor
	 * @param {String} textComment Texto del comentario en utf-8.
	 * @param {int} idPlaceRelated Lugar al que el comentario puede hacer referencia.
	 * */
	public Comment(int idOffline, String textComment, int idAutor, int idPlaceRelated){
		this.comment = textComment;
		this.idAutor = idAutor;
		this.idPlaceRelated = idPlaceRelated;
		this.idOffline = idOffline;
	}

	public String toString(){
		
		return comment;
	}
	
	
	public int getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(int lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public int getIdOffline() {
		return idOffline;
	}

	public void setIdOffline(int idOffline) {
		this.idOffline = idOffline;
	}

	public int getIdOnline() {
		return idOnline;
	}

	public void setIdOnline(int idOnline) {
		this.idOnline = idOnline;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public int getIdPlaceRelated() {
		return idPlaceRelated;
	}

	public void setIdPlaceRelated(int idPlaceRelated) {
		this.idPlaceRelated = idPlaceRelated;
	}

	public int getIdAutor() {
		return idAutor;
	}

	public void setIdAutor(int idAutor) {
		this.idAutor = idAutor;
	}	
}
